#include <stdio.h>

enum OpCodes {
#define OPCODE(NAME, WIDTH, CAT, DESC) _##NAME,
#include "..\cvm_c\opcodes.h"
};

int main()
{
	printf("/**\n \\page opcodes Detailed List of OpCodes\n<table cellpadding='10' width='100%%'>");
	printf("<tr><td>Decimal</td><td>Hexadecimal</td><td>Mnemonic</td><td>Width</td><td>Category</td><td>Description</td></tr>\n"); 
	#define OPCODE(NAME, WIDTH, CAT, DESC) printf("<tr><td>%d</td><td>%x</td><td>%s</td><td>%d</td><td>%s</td></tr>\n", _##NAME, _##NAME, #NAME, WIDTH, CAT, DESC); 
	#include "..\cvm_c\opcodes.h"
	printf("</table>\n**/\n");
}


